package jiemi;

import java.io.FileInputStream;
import java.io.IOException;

public class sennori {
    public static void main(String[] args) throws IOException {
        System.out.println("解密前的yyy.txt为：");
        try (
                FileInputStream jmh = new FileInputStream("yyy.txt");
                ){
            int value;
            while ((value = jmh.read()) !=-1 ){
                System.out.print(value + " ");
            }
        }
        System.out.println();
        System.out.println("解密后的yyy.txt为:");
        try (FileInputStream jmh = new FileInputStream("yyy.txt");)
        {
        int value, i =0;
        byte[] str = new byte[jmh.available()];
        while ((value = jmh.read()) !=-1){
            str[i] = (byte) (value-5);
            i++;

        }
        System.out.println(new String(str));
        }
    }
}